﻿using Microsoft.EntityFrameworkCore;

namespace DailyApp.WebAPI.DataModel
{
    /// <summary>
    /// 数据库上下文
    /// </summary>
    public class DailyAppDbContext : DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public DailyAppDbContext(DbContextOptions<DailyAppDbContext> options) : base(options)
        {
            //
        }

        //数据迁移的模型
        public DbSet<AccountInfo> AccountInfo { get; set; }//账户信息
        public DbSet<WaitInfo> WaitInfo { get; set; }//待办事项信息
        public DbSet<MemoInfo> MemoInfo { get; set; }//备忘录
    }
}
